package com.youhome.service.service;

import com.github.pagehelper.PageInfo;
import com.youhome.common.exception.CustomException;
import com.youhome.service.model.CounselorRecommendHouse;

/**
 * Created by chen365 on 2018/09/17.
 * 顾问向客户推荐房源记录
 */
public interface CounselorRecommendHouseService {
    int deleteByPrimaryKey(Long id);

    int deleteByBean(CounselorRecommendHouse record);

    int insert(CounselorRecommendHouse record);

    int insertSelective(CounselorRecommendHouse record);

    CounselorRecommendHouse selectByPrimaryKey(Long id);

    PageInfo<CounselorRecommendHouse> selectByBean(Integer pageNumber, Integer pageSize, CounselorRecommendHouse record);

    int updateByPrimaryKeySelective(CounselorRecommendHouse record);

    int updateByPrimaryKey(CounselorRecommendHouse record);

    boolean selectExistsByBean(CounselorRecommendHouse record);

    void recommendHouse(String phone, Long clientId, String houseId, String remark) throws CustomException;

    void deleteRecommendHouse(String phone, Long clientId, String houseId) throws CustomException;

    PageInfo<CounselorRecommendHouse> selectByBean(String phone, Long clientId, Integer pageNumber, Integer pageSize) throws CustomException;
}
